﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="TopSlideNews.ascx.cs"
    Inherits="Controls_TopSlideNews" %>
<div id="container">
    <script language="javascript" type="text/javascript" src="/Scripts/jquery.easing.js"></script>
    <script language="javascript" type="text/javascript" src="/Scripts/scripts2.js"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            var buttons = { previous: $('#lofslidecontent45 .lof-previous'),
                next: $('#lofslidecontent45 .lof-next')
            };

            $obj = $('#lofslidecontent45').lofJSidernews({ interval: 4000,
                direction: 'opacitys',
                easing: 'easeInOutExpo',
                duration: 1200,
                auto: true,
                maxItemDisplay: 4,
                navPosition: 'horizontal', // horizontal
                navigatorHeight: 32,
                navigatorWidth: 80,
                mainWidth: 996,
                buttons: buttons
            });
        });
    </script>
    <div id="lofslidecontent45" class="lof-slidecontent" style="width: 996px; height: 340px;">
        <div class="preload">
            <div>
            </div>
        </div>
        <!-- MAIN CONTENT -->
        <div class="lof-main-outer" style="width: 996px; height: 340px;">
            <ul class="lof-main-wapper">
                <asp:Repeater runat="server" ID="rptData">
                    <ItemTemplate>
                        <li>
                            <img src="/upload/<%#Eval("THUMB_IMG") %>" title="<%#DigiLib.StringUtils.Substring(Eval("FULL_ARTICLE_TITLE").ToString(), 0, 50)%>"
                                alt="" />
                            <div class="lof-main-item-desc">
                                <h3>
                                    <a target="_parent" title="<%#Eval("FULL_ARTICLE_TITLE")%>" href='/tin-tuc/<%#DigiLib.StringUtils.RemoveUnicode(Eval("FULL_ARTICLE_TITLE").ToString(),"-") + "-c" + Eval("CATEGORY_ID").ToString() + "a" + Eval("ARTICLE_ID").ToString() %>.htm'>
                                        <%#DigiLib.StringUtils.Substring(Eval("FULL_ARTICLE_TITLE").ToString(), 0, 50)%></a></h3>
                                <p>
                                    <%#DigiLib.StringUtils.Substring(Eval("FULL_ARTICLE_DESCRIPTION").ToString(), 0, 110)%>
                                </p>
                                <a href='/tin-tuc/<%#DigiLib.StringUtils.RemoveUnicode(Eval("FULL_ARTICLE_TITLE").ToString(),"-") + "-c" + Eval("CATEGORY_ID").ToString() + "a" + Eval("ARTICLE_ID").ToString() %>.htm'
                                    class="readmore">Read more >> </a>
                            </div>
                        </li>
                    </ItemTemplate>
                </asp:Repeater>
            </ul>
        </div>
        <!-- END MAIN CONTENT -->
        <!-- NAVIGATOR -->
        <!----------------- --------------------->
    </div>
    <!------------------------------------- END OF THE CONTENT ------------------------------------------------->
</div>
